﻿using ParboiledSharp.parboiled.dataobjects;

namespace ParboiledSharp.parboiled.rules
{
    class TestNot : ContainerRule
    {
        public TestNot(object rule)
        {
            SetRule(rule);
        }

        public TestNot()
        {
        }

        internal override bool Execute(Context context)
        {
            bool result = ExecuteRule(GetRule(), context);
            result = !result;
          //  SetForceRestoreState(true);
            return result;
        }
    }
}
